package net.lab1024.sa.base.module.support.rule.domain.form;

import io.swagger.v3.oas.annotations.media.Schema;
import java.math.BigDecimal;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import lombok.Data;

/**
 * 规则主表 新建表单
 *
 * @Author chenyuqiang
 * @Date 2025-08-21 22:46:37
 * @Copyright 1
 */

@Data
public class CepAddForm {

    @Schema(description = "规则优先级，数字越大优先级越高", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotNull(message = "规则优先级，数字越大优先级越高 不能为空")
    private Integer priority;

    @Schema(description = "创建时间")
    private String createdTime;

    @Schema(description = "更新时间")
    private String updatedTime;

    @Schema(description = "创建人")
    private String createdBy;

    @Schema(description = "更新人")
    private String updatedBy;

    @Schema(description = "默认秒")
    private BigDecimal windowSize;

    @Schema(description = "默认秒")
    private String windowSlide;

    @Schema(description = "分组字段")
    private String groups;

    @Schema(description = "0 正常 1 白名单")
    private Integer white;

    @Schema(description = "0 正常 1 异常推送", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotNull(message = "0 正常 1 异常推送 不能为空")
    private Integer errorStatus;

    @Schema(description = "0 正常 1 异常推送", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotNull(message = "0 正常 1 异常推送 不能为空")
    private Integer logStatus;

}